import request from "@/utils/request";

export function listattendance(params) {
  return request({
    url: "/school/manager/attendance/list",
    method: "get",
    params: params,
  });
}
export function addAttendance(data) {
  return request({
    url: "/school/manager/attendance/addAttendance",
    method: "post",
    data: data,
  });
}
export function updateAttendance(data) {
    return request({
      url: "/school/manager/attendance/updateAttendance",
      method: "post",
      data: data,
    });
  }
export function moveAttendance(data) {
    return request({
      url: "/school/manager/attendance/move",
      method: "post",
      data: data,
    });
  }
export function deleteAttendance(id) {
    return request({
      url: `/school/manager/attendance/deleteAttendance/${id}`,
      method: "delete",
    });
  }
